package edu.sctu.practice.class01.wulixia.month09_wlx.assgin02.calculate;

/**
 * Created by wulixia on 2015/10/8.
 */
public class PrintResult {

    public static void main(String[] args) {

        Rational rationalone = new Rational(11 , 23);

        System.out.println("两数相加：" + rationalone.plus());
        System.out.println("两数相减：" + rationalone.minus());
        System.out.println("两数相乘：" + rationalone.mult());
        System.out.println("两数相除：" + rationalone.divide());

        Rational rationaltwo = new Rational(9 , 3);

        System.out.println("两数相加：" + rationaltwo.plus());
        System.out.println("两数相减：" + rationaltwo.minus());
        System.out.println("两数相乘：" + rationaltwo.mult());
        System.out.println("两数相除：" + rationaltwo.divide());
    }
}
